﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EShop.Model
{
    public class StockIn
    {
        private int _StockInOrder;
        /// <summary>
        /// Stock In Order
        /// </summary>
        public int StockInOrder
        {
            get { return _StockInOrder; }
            set { _StockInOrder = value; }
        }

        private string _Barcode;
        /// <summary>
        /// Barcode
        /// </summary>
        public string Barcode
        {
            get { return _Barcode; }
            set { _Barcode = value; }
        }

        private int _StockInNum;
        /// <summary>
        /// Stock In num
        /// </summary>
        public int StockInNum
        {
            get { return _StockInNum; }
            set { _StockInNum = value; }
        }

        private double _UnitPrice;
        /// <summary>
        /// Unit Price
        /// </summary>
        public double UnitPrice
        {
            get { return _UnitPrice; }
            set { _UnitPrice = value; }
        }

        private double _TotalPrice;
        /// <summary>
        ///  Total Price
        /// </summary>
        public double TotalPrice
        {
            get { return _TotalPrice; }
            set { _TotalPrice = value; }
        }

        private DateTime _OverTime;
        /// <summary>
        /// Over time
        /// </summary>
        public DateTime OverTime
        {
            get { return _OverTime; }
            set { _OverTime = value; }
        }

        private int _IsStatu;
        /// <summary>
        /// 入庫狀態。★狀態：0，未上架；1，已上架；2已售完
        /// </summary>
        public int IsStatu
        {
            get { return _IsStatu; }
            set { _IsStatu = value; }
        }

        private DateTime _StockInTime;
        /// <summary>
        /// Stock In Time
        /// </summary>
        public DateTime StockInTime
        {
            get { return _StockInTime; }
            set { _StockInTime = value; }
        }
    }
}
//StockInOrder			INT			IDENTITY(1,1),			--進貨批次號
//Barcode					VARCHAR(30),						--商品条码
//StockInNum				INT,								--進貨数量
//UnitPrice				MONEY,								--单價
//TotalPrice				MONEY,								--總價
//IsStatu					INT,								--入庫狀態。★狀態：0，未上架；1，已上架；2已售完
//OverTime				DATETIME,							--逾期时间
//StockInTime				DATETIME,							--入庫时间